package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 申请记录-物资 关联表
 * </p>
 *
 * @author Atlakyn
 * @since 2021-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_material_apply_record_material")
public class MaterialApplyRecordMaterial extends Model<MaterialApplyRecordMaterial> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("申请记录Id")
    private Integer applyId;

    @ApiModelProperty("物资Id")
    private Integer materialId;

    @ApiModelProperty("申请数量")
    private Integer num;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}